3/16/23
What questions do you have about data science, stats, R, jobs/internships, etc.?
Note: Any packages described today ARE allowed to be used for the final project, if you’re going the technical presentation route.
The gapminder visualization was made famous by Hans Rosling. The dataset used here includes life expectancy, population, and GDP across 142 countries and 5 continents from 1952-2007.
plotly, gganimate, and r2d3
plotlyggplot plots: ggplotly()plotlygganimateExtends grammar of graphics for use in animation:
transition_*() defines how the data should be spread out and how it relates to itself across time.view_*() defines how the positional scales should change along the animation.shadow_*() defines how data from other points in time should be presented in the given point in time.enter_*()/exit_*() defines how new data should appear and how old data should disappear during the course of the animation.ease_aes() defines how different aesthetics should be eased during transitions.Source: https://gganimate.com/
r2d3devtools and usethisbookdown, xaringan, blogdown, and quarto
An ode to Yihui Xie
bookdownAn R package by Yihui Xie to write online books, with the philosophy that it “should be technically easy to write a book, visually pleasant to view the book, fun to interact with the book, convenient to navigate through the book, straightforward for readers to contribute or leave feedback to the book author(s), and more importantly, authors should not always be distracted by typesetting details”
bookdown: Authoring Books and Technical Documents with R Markdown, by Yihui Xiebookdown galleryxaringanAn RMarkdown extension (based on JS library remark.js) to generate slides from .Rmd documents.
xaringan PresentationsblogdownEnables personal website creation using R Markdown and Hugo (or Jekyll)
blogdown: Creating websites with R Markdown, by Yihui Xie, Amber Thomas, and Alison Presmanes Hillan open-source scientific and technical publishing system built on Pandoc
tidymodels and broom packages, so the other packages in tidymodels are optionscaret is a precursor to tidymodels and good for thisrvestnwslR, baseballr, NFLShinyShiny is an R package that allows you to build interactive web apps directly from R (initially developed by Winston Chang)
ShinyShiny appAn online community that works with a new dataset every week. You could continue your R practice. There is a Twitter hashtag to share your work: #TidyTuesday
Note: your first midterm dataset came from Tidy Tuesday.
Always wanted a personal website? Get Started with blogdown! Have a data-centric app you want to share with the world? Shiny it up! Have slides that need to be created for a final project? Give xaringan a go! Have a visualization that needs animation? Make it move!
tidyverseggplot2Shiny, bookdown, blogdown, plotly/gganimateLots of thanks!